﻿using System;
using System.Collections.Generic;
using System.Text;

using YouHP.Model;
using YouHP.DALFactory;
using YouHP.Utility;
namespace YouHP.BLL
{
    public class HyperLinkBLL
    {
        #region Singleton
        static HyperLinkBLL _Instance;
        public static HyperLinkBLL Instance
        {
            get
            {
                if (_Instance == null)
                {
                    _Instance = new HyperLinkBLL();
                }
                return _Instance;
            }
        }
        #endregion

        public bool AddHyperLink(HyperLinkInfo info)
        {
            return DataAccess.HyperLinkInfoDAL.AddHyperLink(info);
        }

        public bool DeleteHyperLink(int[] itemIds)
        {
            return DataAccess.HyperLinkInfoDAL.DelHyperLink(itemIds);
        }
        public bool UpdateHyperLink(HyperLinkInfo info)
        {
            return DataAccess.HyperLinkInfoDAL.UpdateHyperLink(info);
        }

        public HyperLinkInfo GetHyperLink(int id)
        {
            return DataAccess.HyperLinkInfoDAL.GetHyperLink(id);
        }

        public List<HyperLinkInfo> GetHyperLinkList()
        {
            return DataAccess.HyperLinkInfoDAL.GetHyperLinkList();
        }

        //public List<HyperLinkInfo> GetBulletinInfoList()
       // {
        //    return DataAccess.NewsInfoDAL.GetBullentinList();
       // }

    }
}
